﻿using System.Text.Json;
using Mathmall.Administration.Models;
using Mathmall.Administration.oss;
using Xunit.Abstractions;
using Xunit.Sdk;

namespace TestProject;

public class UnitTest1
{
    private readonly ITestOutputHelper _testOutputHelper;

    public UnitTest1(ITestOutputHelper testOutputHelper)
    {
        _testOutputHelper = testOutputHelper;
    }

    [Fact]
    public void Test1()
    {
        string filePath = "C:\\Users\\25451\\source\\repos\\mathmall\\mathmall-administration\\TestProject\\" +
                          "test.txt";
        // string text = "credentials.SecurityToken".Trim();
        string text = "credentials.SecurityToken".Substring(0, 1);
        File.WriteAllTextAsync(filePath, text);
    }

    [Fact]
    public void Test2()
    {
        string a = "abc.defd";
        Console.WriteLine(a.Replace(".", ""));
    }
    
}